package com.example.demo1.Mapper;


import com.example.demo1.Bean.Admin;
import com.example.demo1.Bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    List<UserBean> selectUserBykw(@Param("keyword") String keyword,@Param("arr") String LastDateArrorder);
    List<UserBean> selectAllUser(@Param("arr") String LastDateArrorder);
    List<UserBean> getAllUser();
    void updateUser(@Param("isLogin") String isLogin, @Param("UserId")String UserId,@Param("UserName")String UserName,@Param("UserSex")String UserSex,@Param("UserPhone")String UserPhone,@Param("UserAddress")String UserAddress);
    void deleteUser(@Param("UserId")String UserId);
    UserBean getUser(@Param("UserId")String id);
    UserBean getUserByname(@Param("UserName")String UserName);
    void updateUserLastDate( @Param("UserId")String UserId,  @Param("lastdate")LocalDate date);
    void insertUser(@Param("UserId")String userid,@Param("UserName")String username,@Param("UserSex")String usersex,@Param("UserPhone")String userphone,@Param("UserAddress")String usearddress,@Param("lastdate")LocalDate date);
}
